﻿using System.Web;
using NHibernate;

namespace Genesis.Infrastructure.Persistence.Providers
{

    public class TransactionProvider
    {

        public static ITransaction Current
        {

            get { return HttpContext.Current.Items["CurrentTransaction"] as ITransaction; }

            set { HttpContext.Current.Items["CurrentTransaction"] = value; }

        }

    }

}